package com.example.mall.order.domain.service.impl;

import com.example.mall.order.domain.service.Merch;
import com.example.mall.order.domain.service.OrderSettle;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 需要运输的订单结算
 * 例如 网上购买实体商品 通过快递送货
 *
 * @author Mickey
 * @since 2022/4/22
 **/
@Service
public class DeliveryOrderSettle implements OrderSettle {

    @Override
    public void calc(List<? extends Merch> merchList) {
        for (Merch merch : merchList) {
            Object desc = merch.desc();
            System.out.println(desc);
        }
    }
}
